/**
 * Description: MaintainReportStatuServiceImpl.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Apr 13, 2009 7:36:27 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.services.impl;

import java.util.List;

import org.paradise.dms.dao.impl.MaintainReportStatusDAOImpl;
import org.paradise.dms.pojo.MaintainReportStatus;
import org.paradise.dms.services.MaintainReportStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Description: 
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Apr 13, 2009 7:36:27 PM 李萌（neolimeng@gmail.com）created
 */
@Service
public class MaintainReportStatuServiceImpl implements
		MaintainReportStatusService {
	@Autowired
	@Qualifier("maintainReportStatusDAOImpl")
	MaintainReportStatusDAOImpl maintainReportDAOImpl;

	/* (non-Javadoc)
	 * @see org.paradise.dms.services.MaintainReportSatusService#getAllMaintainReportStatus()
	 */
	public List<MaintainReportStatus> getAllMaintainReportStatus() {
		try{
			return this.maintainReportDAOImpl.getMaintainReportStatuses();
			
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
	}

	public MaintainReportStatusDAOImpl getMaintainReportDAOImpl() {
		return maintainReportDAOImpl;
	}

	public void setMaintainReportDAOImpl(
			MaintainReportStatusDAOImpl maintainReportDAOImpl) {
		this.maintainReportDAOImpl = maintainReportDAOImpl;
	}

}
